package com.atguigu.springcloud;

import com.atguigu.springcloud.entities.Payment;
import com.atguigu.springcloud.service.PaymentService;
import org.junit.Test;

import javax.annotation.Resource;

public class test {

    @Resource
    private PaymentService paymentService;

    @Test
    public void testCreate(){
        int result = paymentService.create(new Payment("111"));
        System.out.println(result);
    }

    @Test
    public void testGetPaymentById(){
        Payment payment = paymentService.getPaymentById(31L);
        System.out.println(payment);
    }
}
